using System;
using System.Collections.Generic;
using System.Data;

namespace Medianamik.Globalization
{
    public interface IMedianamikResourceDataManager
    {
        IEnumerable<Resource> GetNewOrUpdatedResources(IEnumerable<string> cultureNames,
                                                    DateTime lastModifiedOn, IEnumerable<string> resourceSets,
                                                    int maxResourceUpdate);

        void UpdateOrAdd(Resource resource);

        string ErrorMessage { get; set; }

        IEnumerable<string> GetResourceIds(string resourceSet);

        Dictionary<string, string> GetResourceStrings(string resourceId, string resourceSet);

        DataTable GetAllResourceSets(ResourceListingTypes type);
        IEnumerable<string> GetResourceSets(ResourceListingTypes type);

        IEnumerable<Resource> GetResourcesForLocalUseOnly();
    }
}